package com.naiterui.ehp.bs.patient.repository;

import com.naiterui.common.repository.core.BaseJpaRepository;
import com.naiterui.ehp.bs.patient.domain.WeixinInfo;
import java.util.Collection;
import java.util.List;
import org.springframework.stereotype.Repository;

/**
 * @author 高亮亮 gll910802@163.com
 * @since 2020-08-27 10:41:28
 */
@Repository
public interface IWeixinInfoRepository extends BaseJpaRepository<WeixinInfo, Long> {
    WeixinInfo findByMiniOpenIdAndUnionId(String miniAppOpenId, String unionId);

    WeixinInfo findByUnionId(String unionId);

    WeixinInfo findByMiniOpenId(String miniAppOpenId);

    List<WeixinInfo> findByIdIn(Collection<Long> userIds);

    WeixinInfo findByMpOpenId(String openId);
}